 <!--:
	var label = "字典";
	var typeVal = isEmpty(type) ? dictionary.type : parseInt(type);
	if(typeVal == 0){
		label = "目录";
	}
-->
 <form id="form-dictionary" class="form-horizontal">
     <div class="form-group ">
         <input type="hidden" id="dictionary-uuid" name="dictionary.uuid" value="${dictionary.uuid}">
         <input type="hidden" id="dictionary-type" name="dictionary.type" value="${typeVal}">
         
         <label class="control-label col-xs-3" for="dictionary-name">${label}名称：</label>
         <div class="col-xs-9">
             <input dataValid="*" type="text" class="form-control input-sm" id="dictionary-name" name="dictionary.name" value="${dictionary.name}" placeholder="${label}名称">
         </div>
     </div>
     <!--: if(typeVal == 0){-->
     <div class="form-group" >
         <label class="control-label col-xs-3" for="dictionary-code">${label}编码：</label>
         <div class="col-xs-9">
             <input dataValid="*" type="text" class="form-control input-sm" id="dictionary-code" name="dictionary.code" value="${dictionary.code}" placeholder="${label}编码">
         </div>
     </div>
	<!--:}  -->
	<!--: if(typeVal == 1){-->
     <div class="form-group">
         <label class="control-label col-xs-3" for="dictionary-value">字典值：</label>
         <div class="col-xs-9">
             <input dataValid="*" type="text" class="form-control input-sm" id="dictionary-value" name="dictionary.value" value="${dictionary.value}" placeholder="字典值">
         </div>
     </div>
     
     <div class="form-group">
      <label class="control-label col-xs-3" for="dictionary-parentid">所属目录：</label>
      <div class="col-xs-9">
			<x:select dataValid="*" models="${modelSel('dictionary','0')}" defaultOption="请选择" field="uuid,name" value="${dictionary.parentid}"
          				id="dictionary-parentid1" name="dictionary.parentid" class="chosen-select form-control" >
			</x:select>
     	</div>
     </div>
     <!--:}  -->
 </form>
